package net

import (
	"corelib/log"
	"github.com/kataras/iris/v12"
)

type RouterInterface interface {
	runHandle(Context)
}

type Application interface {
	RegisterRouter(...RouterInterface)
	Start() error
}

type Conn interface {
	Send([]byte) (int, error)
	Recv() ([]byte, error)
}

type Context struct {
	iris.Context
	token string
	uid   uint64
	log.LogInf
}

const (
	PING = "ping"
	PONG = "pong"
)
